import { EVector3 } from "../engine/Math";

export type EffectPositionData = {
    pos: EVector3,
    world: boolean,
    offsetY: number
};
/**
* 返回战斗单位显示Zindex
* @param zIndex 越往下值越大
* @param displayLayer 
* @param actionZIndex 
* @param typeZIndex 
* @returns 
*/
export function getDisplayZIndex(zIndex: number, displayLayer: number, actionZIndex: number, typeZIndex: number): number {
    let priorityStr = `${displayLayer}${(zIndex + 5000).toFixed(0)}${actionZIndex}${typeZIndex}`;
    let priority = parseInt(priorityStr);
    return priority;
}